#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<assert.h>
int my_strcmp(const char* str1,const char* str2)
{
    assert(str1 != NULL);
	assert(str2 != NULL);
	while(*str1 == *str2)
	{
	    if(*str1 == '\0')
		{
		    return 0;
		}
		str1++;
		str2++;
	}
	if(*str1 > *str2)
	{
	    return 1;
	}
	else
	{
	    return -1;
	}
}
int main()
{
	char arr1[] = "abcdefgh";
	char arr2[] = "abcdefg";
	printf("%d\n",my_strcmp(arr1,arr2));
	return 0;
}